package com.joysuch.wwyt.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.joysuch.wwyt.common.entity.ExcelTable;
import com.joysuch.wwyt.core.common.ajax.ResultBean;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zqw
 * @since 2021-05-31
 */
public interface ExcelTableService extends IService<ExcelTable> {

    //    ResultBean saveTable(ExcelTableBean bean);
//
//    ResultBean pageTable(ExcelTableSearchBean searchBean);
//
    ResultBean listTable();
//
//    ResultBean deleteTable(Long id);
//
//    ResultBean saveField(ExcelFieldBean bean);
//
//    ResultBean listField(Long tableId);
//
//    ResultBean deleteField(Long id);

    SXSSFWorkbook exportExcelData(List<Long> idList);

    List<String> importExcelData(MultipartFile file) throws Exception;
}
